

function foo() {
    var name = 'kkzx'
    function bar() {
        console.log('bar..'+name)
    }
    return bar
}

var fn = foo()

fn()





